<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Alfar Engine: AlfarEngine.GameObject Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Alfar Engine
   
   </div>
   <div id="projectbrief">A little 2D engine managing a scene</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespace_alfar_engine.html">AlfarEngine</a>      </li>
      <li class="navelem"><a class="el" href="class_alfar_engine_1_1_game_object.html">GameObject</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="#properties">Properties</a>  </div>
  <div class="headertitle">
<div class="title">AlfarEngine.GameObject Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="AlfarEngine::GameObject" -->
<p>The abstract class that define an Object of the <a class="el" href="class_alfar_engine_1_1_engine.html" title="The Main class that encapsulate all the information and operation of the Engine.">Engine</a>. Subclass this to allow specification (redefinition of Update and Draw)  
 <a href="class_alfar_engine_1_1_game_object.html#details">More...</a></p>

<p><a href="class_alfar_engine_1_1_game_object-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_alfar_engine_1_1_game_object.html#aaaeea3dc1371620bac3c6e5a40209983">GameObject</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Build an object with the default name "Object".  <a href="#aaaeea3dc1371620bac3c6e5a40209983"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_alfar_engine_1_1_game_object.html#a450d0ead780785fdcc907cf18e0c1a06">GameObject</a> (string pName)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">build a new Object.  <a href="#a450d0ead780785fdcc907cf18e0c1a06"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_alfar_engine_1_1_game_object.html#a6e9787a9e1396a016fa8eda3c4ca1fc7">Update</a> (GameTime pTime)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Update this object (call update on all components)  <a href="#a6e9787a9e1396a016fa8eda3c4ca1fc7"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_alfar_engine_1_1_game_object.html#ab0235daf877e18afa435e18411349fbc">Draw</a> (GameTime pTime)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw this object (call draw on all components)  <a href="#ab0235daf877e18afa435e18411349fbc"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af29848e93698c5100a14720ffb7d680d"></a><!-- doxytag: member="AlfarEngine::GameObject::Draw" ref="af29848e93698c5100a14720ffb7d680d" args="(GameTime pTime, Color pColor)" -->
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>Draw</b> (GameTime pTime, Color pColor)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_alfar_engine_1_1_game_object.html#a068ab559bdbc54f7ea3391643e020e64">AddObject</a> (<a class="el" href="class_alfar_engine_1_1_game_object.html">GameObject</a> pChild)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Add an Object as Child of this Object.  <a href="#a068ab559bdbc54f7ea3391643e020e64"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">T&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_alfar_engine_1_1_game_object.html#a7183d3ccc258e2b773503e7b44e5dce4">AddComponent&lt; T &gt;</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Add a component of type T.  <a href="#a7183d3ccc258e2b773503e7b44e5dce4"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">T&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_alfar_engine_1_1_game_object.html#a2422d68c615aa99963ab30b723ff26ab">GetComponent&lt; T &gt;</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the first component of type T it find. if none are found, return null.  <a href="#a2422d68c615aa99963ab30b723ff26ab"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_alfar_engine_1_1_game_object.html#ad49fae9f18d37e18a963fceb6e0ecd00">BuildBoundingRect</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Build the boundingRect upward. Call this for example at the start of the level if you're bulding the level proceduraly. It will allow to optimize the drawing.  <a href="#ad49fae9f18d37e18a963fceb6e0ecd00"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aef979a683e9285365608586771310717"></a><!-- doxytag: member="AlfarEngine::GameObject::UpdateBoudingRectUpward" ref="aef979a683e9285365608586771310717" args="()" -->
void&#160;</td><td class="memItemRight" valign="bottom"><b>UpdateBoudingRectUpward</b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_alfar_engine_1_1_game_object.html#a2dda7d38e67d0b5bb64d6c243a8e3c58">IsVisible</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Check if this gameobject is visible in the current viewport (Engine.currentViewport).  <a href="#a2dda7d38e67d0b5bb64d6c243a8e3c58"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa621b9eee14094603922339e9aa4177a"></a><!-- doxytag: member="AlfarEngine::GameObject::GetChild" ref="aa621b9eee14094603922339e9aa4177a" args="(int i)" -->
<a class="el" href="class_alfar_engine_1_1_game_object.html">GameObject</a>&#160;</td><td class="memItemRight" valign="bottom"><b>GetChild</b> (int i)</td></tr>
<tr><td colspan="2"><h2><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9cb60191087ad7622222725b0fefb92d"></a><!-- doxytag: member="AlfarEngine::GameObject::mName" ref="a9cb60191087ad7622222725b0fefb92d" args="" -->
string&#160;</td><td class="memItemRight" valign="bottom"><b>mName</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a861a94cb8392f3532dbd57f0d4e3c8c7"></a><!-- doxytag: member="AlfarEngine::GameObject::mPos" ref="a861a94cb8392f3532dbd57f0d4e3c8c7" args="" -->
Vector2&#160;</td><td class="memItemRight" valign="bottom"><b>mPos</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a76361f73f1ae554f15880d5e0f5e53a1"></a><!-- doxytag: member="AlfarEngine::GameObject::mParent" ref="a76361f73f1ae554f15880d5e0f5e53a1" args="" -->
<a class="el" href="class_alfar_engine_1_1_game_object.html">GameObject</a>&#160;</td><td class="memItemRight" valign="bottom"><b>mParent</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a659ff7bd3fcd73c3fc1a30069dd32c45"></a><!-- doxytag: member="AlfarEngine::GameObject::mChildren" ref="a659ff7bd3fcd73c3fc1a30069dd32c45" args="" -->
List&lt; <a class="el" href="class_alfar_engine_1_1_game_object.html">GameObject</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>mChildren</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aaa00746a10e04a0475b86ce1939aebb5"></a><!-- doxytag: member="AlfarEngine::GameObject::mComponents" ref="aaa00746a10e04a0475b86ce1939aebb5" args="" -->
List&lt; <a class="el" href="class_alfar_engine_1_1_components_1_1_a_component.html">AComponent</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>mComponents</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa43305b73d2b03cbbadd16a6fc431b63"></a><!-- doxytag: member="AlfarEngine::GameObject::mBoundingRect" ref="aa43305b73d2b03cbbadd16a6fc431b63" args="" -->
Rectangle&#160;</td><td class="memItemRight" valign="bottom"><b>mBoundingRect</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af8838be784caee3d122fd667b3fb46b5"></a><!-- doxytag: member="AlfarEngine::GameObject::mWorldBBox" ref="af8838be784caee3d122fd667b3fb46b5" args="" -->
Rectangle&#160;</td><td class="memItemRight" valign="bottom"><b>mWorldBBox</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a149bc6b8d4a59694851c4d1713b854b1"></a><!-- doxytag: member="AlfarEngine::GameObject::mDirty" ref="a149bc6b8d4a59694851c4d1713b854b1" args="" -->
bool&#160;</td><td class="memItemRight" valign="bottom"><b>mDirty</b></td></tr>
<tr><td colspan="2"><h2><a name="properties"></a>
Properties</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">Vector2&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_alfar_engine_1_1_game_object.html#a8ffa5bca5f8ce44417b9f30b7970323c">position</a><code> [get, set]</code></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The world position of this object.  <a href="#a8ffa5bca5f8ce44417b9f30b7970323c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_alfar_engine_1_1_game_object.html#a7cd32055302c166fefc83b37ddbf9bd4">name</a><code> [get, set]</code></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The name of this object (by default "Object")  <a href="#a7cd32055302c166fefc83b37ddbf9bd4"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_alfar_engine_1_1_game_object.html">GameObject</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_alfar_engine_1_1_game_object.html#a6a9da67e81678404bf5adb27c00d4088">parent</a><code> [get, set]</code></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The parent of this object, null if none.  <a href="#a6a9da67e81678404bf5adb27c00d4088"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_alfar_engine_1_1_game_object.html#af3526368038424c518d21ed5cb66025e">childrenCount</a><code> [get]</code></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the number of children.  <a href="#af3526368038424c518d21ed5cb66025e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">Rectangle&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_alfar_engine_1_1_game_object.html#a4315aa8530fca99bcf9a15e1bf94dd6b">bounds</a><code> [get, set]</code></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The bouding rectangle of this data (never change this manually!)  <a href="#a4315aa8530fca99bcf9a15e1bf94dd6b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">Rectangle&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_alfar_engine_1_1_game_object.html#a47e41e2fe05c36ee5d41f6239ece5e05">localBounds</a><code> [get, set]</code></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">the bound in local space (relative to it's parent)  <a href="#a47e41e2fe05c36ee5d41f6239ece5e05"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_alfar_engine_1_1_game_object.html#aa43aca9e76b69569ff979daf487e33f3">dirty</a><code> [get, set]</code></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">set this <a class="el" href="class_alfar_engine_1_1_game_object.html" title="The abstract class that define an Object of the Engine. Subclass this to allow specification (redefin...">GameObject</a> as "dirty", meaning it need to update all it's child, and recompute the bounds of its hierarchy  <a href="#aa43aca9e76b69569ff979daf487e33f3"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>The abstract class that define an Object of the <a class="el" href="class_alfar_engine_1_1_engine.html" title="The Main class that encapsulate all the information and operation of the Engine.">Engine</a>. Subclass this to allow specification (redefinition of Update and Draw) </p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="aaaeea3dc1371620bac3c6e5a40209983"></a><!-- doxytag: member="AlfarEngine::GameObject::GameObject" ref="aaaeea3dc1371620bac3c6e5a40209983" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">AlfarEngine.GameObject.GameObject </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Build an object with the default name "Object". </p>

</div>
</div>
<a class="anchor" id="a450d0ead780785fdcc907cf18e0c1a06"></a><!-- doxytag: member="AlfarEngine::GameObject::GameObject" ref="a450d0ead780785fdcc907cf18e0c1a06" args="(string pName)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">AlfarEngine.GameObject.GameObject </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>pName</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>build a new Object. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">pName</td><td>The name of this object</td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a7183d3ccc258e2b773503e7b44e5dce4"></a><!-- doxytag: member="AlfarEngine::GameObject::AddComponent&lt; T &gt;" ref="a7183d3ccc258e2b773503e7b44e5dce4" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">T AlfarEngine.GameObject.AddComponent&lt; T &gt; </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Add a component of type T. </p>
<dl><dt><b>Template Parameters:</b></dt><dd>
  <table class="">
    <tr><td class="paramname">T</td><td>The Type of the Component to Add. Must be derived from AComponent</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd></dd></dl>
<div class="typeconstraint">
<dl><dt><b>Type Constraints</b><dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em>T</em></td><td>&#160;:</td><td valign="top"><em>AComponent</em></td><td>&#160;</td></tr>
</table>
</dl>
</div>

</div>
</div>
<a class="anchor" id="a068ab559bdbc54f7ea3391643e020e64"></a><!-- doxytag: member="AlfarEngine::GameObject::AddObject" ref="a068ab559bdbc54f7ea3391643e020e64" args="(GameObject pChild)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void AlfarEngine.GameObject.AddObject </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_alfar_engine_1_1_game_object.html">GameObject</a>&#160;</td>
          <td class="paramname"><em>pChild</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Add an Object as Child of this Object. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">pChild</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ad49fae9f18d37e18a963fceb6e0ecd00"></a><!-- doxytag: member="AlfarEngine::GameObject::BuildBoundingRect" ref="ad49fae9f18d37e18a963fceb6e0ecd00" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void AlfarEngine.GameObject.BuildBoundingRect </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Build the boundingRect upward. Call this for example at the start of the level if you're bulding the level proceduraly. It will allow to optimize the drawing. </p>

</div>
</div>
<a class="anchor" id="ab0235daf877e18afa435e18411349fbc"></a><!-- doxytag: member="AlfarEngine::GameObject::Draw" ref="ab0235daf877e18afa435e18411349fbc" args="(GameTime pTime)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void AlfarEngine.GameObject.Draw </td>
          <td>(</td>
          <td class="paramtype">GameTime&#160;</td>
          <td class="paramname"><em>pTime</em></td><td>)</td>
          <td><code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draw this object (call draw on all components) </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">pTime</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a2422d68c615aa99963ab30b723ff26ab"></a><!-- doxytag: member="AlfarEngine::GameObject::GetComponent&lt; T &gt;" ref="a2422d68c615aa99963ab30b723ff26ab" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">T AlfarEngine.GameObject.GetComponent&lt; T &gt; </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return the first component of type T it find. if none are found, return null. </p>
<dl><dt><b>Template Parameters:</b></dt><dd>
  <table class="">
    <tr><td class="paramname">T</td><td>The type you want to get</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the component if found, null if not</dd></dl>
<div class="typeconstraint">
<dl><dt><b>Type Constraints</b><dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em>T</em></td><td>&#160;:</td><td valign="top"><em>AComponent</em></td><td>&#160;</td></tr>
</table>
</dl>
</div>

</div>
</div>
<a class="anchor" id="a2dda7d38e67d0b5bb64d6c243a8e3c58"></a><!-- doxytag: member="AlfarEngine::GameObject::IsVisible" ref="a2dda7d38e67d0b5bb64d6c243a8e3c58" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool AlfarEngine.GameObject.IsVisible </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Check if this gameobject is visible in the current viewport (Engine.currentViewport). </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if inside the viewport, false otherwise</dd></dl>

</div>
</div>
<a class="anchor" id="a6e9787a9e1396a016fa8eda3c4ca1fc7"></a><!-- doxytag: member="AlfarEngine::GameObject::Update" ref="a6e9787a9e1396a016fa8eda3c4ca1fc7" args="(GameTime pTime)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void AlfarEngine.GameObject.Update </td>
          <td>(</td>
          <td class="paramtype">GameTime&#160;</td>
          <td class="paramname"><em>pTime</em></td><td>)</td>
          <td><code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Update this object (call update on all components) </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">pTime</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/><h2>Property Documentation</h2>
<a class="anchor" id="a4315aa8530fca99bcf9a15e1bf94dd6b"></a><!-- doxytag: member="AlfarEngine::GameObject::bounds" ref="a4315aa8530fca99bcf9a15e1bf94dd6b" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Rectangle AlfarEngine.GameObject.bounds<code> [get, set]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>The bouding rectangle of this data (never change this manually!) </p>

</div>
</div>
<a class="anchor" id="af3526368038424c518d21ed5cb66025e"></a><!-- doxytag: member="AlfarEngine::GameObject::childrenCount" ref="af3526368038424c518d21ed5cb66025e" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int AlfarEngine.GameObject.childrenCount<code> [get]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return the number of children. </p>

</div>
</div>
<a class="anchor" id="aa43aca9e76b69569ff979daf487e33f3"></a><!-- doxytag: member="AlfarEngine::GameObject::dirty" ref="aa43aca9e76b69569ff979daf487e33f3" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool AlfarEngine.GameObject.dirty<code> [get, set]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>set this <a class="el" href="class_alfar_engine_1_1_game_object.html" title="The abstract class that define an Object of the Engine. Subclass this to allow specification (redefin...">GameObject</a> as "dirty", meaning it need to update all it's child, and recompute the bounds of its hierarchy </p>

</div>
</div>
<a class="anchor" id="a47e41e2fe05c36ee5d41f6239ece5e05"></a><!-- doxytag: member="AlfarEngine::GameObject::localBounds" ref="a47e41e2fe05c36ee5d41f6239ece5e05" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Rectangle AlfarEngine.GameObject.localBounds<code> [get, set]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>the bound in local space (relative to it's parent) </p>

</div>
</div>
<a class="anchor" id="a7cd32055302c166fefc83b37ddbf9bd4"></a><!-- doxytag: member="AlfarEngine::GameObject::name" ref="a7cd32055302c166fefc83b37ddbf9bd4" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">string AlfarEngine.GameObject.name<code> [get, set]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>The name of this object (by default "Object") </p>

</div>
</div>
<a class="anchor" id="a6a9da67e81678404bf5adb27c00d4088"></a><!-- doxytag: member="AlfarEngine::GameObject::parent" ref="a6a9da67e81678404bf5adb27c00d4088" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_alfar_engine_1_1_game_object.html">GameObject</a> AlfarEngine.GameObject.parent<code> [get, set]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>The parent of this object, null if none. </p>

</div>
</div>
<a class="anchor" id="a8ffa5bca5f8ce44417b9f30b7970323c"></a><!-- doxytag: member="AlfarEngine::GameObject::position" ref="a8ffa5bca5f8ce44417b9f30b7970323c" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Vector2 AlfarEngine.GameObject.position<code> [get, set]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>The world position of this object. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>E:/XNA/alfarEngine/AlfarEngine/GameObject.cs</li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Properties</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Mon Jan 16 2012 09:38:38 for Alfar Engine by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
